<?php

require_once './application/controllers/ControllerBase.php';
//require_once './application/models/Objets/Utilisateur.php';
//require_once './application/models/Objets/Composant.php';
require_once './application/core/Connexion/execCore.php';

///
/// Page principale de l'application
class IndexController extends ControllerBase
{

    protected $_session;
    protected $_form;

    // Action par defaut
    public function indexAction()
    {
        $core = new ExecCore($this);
        $isConnect = $core->Execute();
        if (!$isConnect)
        {
            $this->_redirector->gotoUrl('/connexion/');
        } else
        {
            $this->_session = new zend_session_namespace('session');
            $this->_session->idClient;
            $this->view->idUser = $this->_session->idClient;
            $this->view->idDroit = $this->_session->idDroit;
        }
    }

}
?>